<template>
    <div>
      <!-- 综合查询 -->
      <div>
<el-form :inline="true"  class="demo-form-inline">
  <el-form-item label="流程名称">
    <el-input v-model="sname" placeholder="流程名称"></el-input>
  </el-form-item>
<el-form-item label="标识Key">
    <el-input v-model="sname" placeholder="标识Key"></el-input>
  </el-form-item>
   <el-form-item label="结束时间">
  <el-date-picker
      v-model="value1"
      type="date"
      placeholder="选择日期">
    </el-date-picker>
    </el-form-item>
  <el-form-item>
    <el-button type="primary"  icon="el-icon-search" @click="onSubmit">搜索</el-button>
      <el-button type="primary" icon="el-icon-delete" >批量删除</el-button>
  </el-form-item>
</el-form>
      </div>


       <!-- 列表显示 -->
      <div>
         <el-table
          border 
    ref="multipleTable"
    :data="tableData"
    tooltip-effect="dark"
    style="width: 100%"
    @selection-change="handleSelectionChange">
    <el-table-column
      type="selection"
      width="55">
    </el-table-column>
    <el-table-column
      prop="id"
      label="#"
      width="120">
    </el-table-column>
    <el-table-column
      prop="cid"
      label="流程实例ID"
      width="120">
    </el-table-column>
    <el-table-column
      prop="name"
      label="流程名称"
      width="150">
    </el-table-column>
    <el-table-column
      prop="age"
      label="申请人"
      width="150">
    </el-table-column>
      <el-table-column
      prop="biaoshi"
      label="标识Key"
      width="120">
    </el-table-column>
    <el-table-column
      prop="banben"
      label="版本"
      width="130">
    </el-table-column>
    <el-table-column
      prop="jiegui"
      label="审批结果"
      width="150">
    </el-table-column>
    <el-table-column
      prop="yuanyin"
      label="原因详情"
      width="150">
    </el-table-column>
     <el-table-column
      prop="date2"
      label="总耗时"
      width="150">
    </el-table-column>
      <el-table-column
      label="开始时间"
      width="180">
      <template slot-scope="scope">{{ scope.row.date }}</template>
    </el-table-column>
    <el-table-column
      label="结束时间"
      width="180">
      <template slot-scope="scope">{{ scope.row.date1 }}</template>
    </el-table-column>
      <el-table-column
      fixed="right"
      label="操作"
      width="220">
      <template slot-scope="scope">
        <el-button @click="handleClick(scope.row)" type="text" size="small">审批历史</el-button>
        <el-button @click="handleClick(scope.row)" type="text" size="small">表单流程</el-button>
        <el-button @click="handleClick(scope.row)" type="text" size="small">删除</el-button>
      </template>
    </el-table-column>
  </el-table>
  <br>
  <el-pagination
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
      :current-page="currentPage4"
      :page-sizes="[5, 10, 20, 50]"
      :page-size="5"
      layout="total, sizes, prev, pager, next, jumper"
      :total="5">
    </el-pagination>
    </div>
    </div>
</template>
<script>
export default {
    data() {
        return {
            tableData: [
              {
                id:"1",                
                cid:"123",
                name:"abdfs",
                age:"bbb",
                biaoshi:"leave",
                banben:"1.v",
                jiegui:"aaa",
                yuanyin:"",
                date2:"2月",
                date:"2020-2-20",
                date1:"2021-6-20"       
              },{
                id:"2",                
                cid:"231",
                name:"bbbv",
                age:"cccc",
                biaoshi:"leave",
                banben:"2.v",
                 jiegui:"vvv",
                yuanyin:"",
                date2:"1月",
                date:"2020-2-20",
                date1:"2021-6-20"         
              },{
                 id:"3",                
                cid:"3333",
                name:"cccc",
                age:"ccc",
                biaoshi:"leave",
                banben:"3.v",
                jiegui:"ccc",
                yuanyin:"",
                date2:"5月",
                date:"2020-2-20",
                date1:"2021-6-20"         
            }],
        multipleSelection: [],
         currentPage4: 4,
         value1:"",
         formLabelWidth: '100px',
         dialogFormVisible:false,
         ruleForm:{
            sname:'',
            cid:'',
            age:'',
            sdate:'',
            
        }
      }
    },
     methods: {
      handleSizeChange(val) {
        console.log(`每页 ${val} 条`);
      },
      handleCurrentChange(val) {
        console.log(`当前页: ${val}`);
      }
    }
        };
              
</script>